package com.example.cloud.dao.mongdb.system;

import com.example.cloud.model.system.Organ;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/3/4.
 */
@Repository
public interface MongoOrganRepository extends MongoRepository<Organ, Long> {
    Organ findByLevelAndDeleteFlag(int level, int deleteFlag);
    List<Organ> findByParentIdAndDeleteFlag(long parentId, int deleteFlag);
}
